Home:ALL Converter>wordpress acf date trouble

wordpress acf date trouble

Ask Time:2020-02-24T01:11:50         Author:ThoZu

Json Formatter

Hello!

I set an ACF called pst_date and filled it with '03.05.2015' on a post.
In my template I'm using:

<?php echo get_field('pst_date'); ?>

Output shows 02.05.2015.

Same happens for other years even 2020.
Now I was curious and tried other dates and both input '29.03.2015' and '30.03.2015' have same output of '29.03.2015'.

Before the date '29.03.2015' it shows the correct date.
After '29.03.2015' it is one day short.

Same happens for other dates passed the last sunday of march.
So I assume its some DST bug.

Is there any workaround / fix?
Google was not helpful with that particular problem.

wordpress 5.3.2
php 7.0 / 7.1 / 7.2 / 7.3

Thank you.

Author:ThoZu,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60364727/wordpress-acf-date-trouble
yy